/**
 * 
 */
package ihm.actions.files;

import ihm.controllers.ATKcontroller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;

/**
 * 
 * @author Baptiste Legrand & Benjamin Orman
 * @version 1.0
 */
public class SaveAction
    implements ActionListener {
  
  private ATKcontroller controller;
  
  public SaveAction(ATKcontroller controller)
  {
    this.controller = controller;
  }
  /* (non-Javadoc)
   * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
   */
  @Override
  public void actionPerformed(ActionEvent e) {
    System.out.println("Action -> Save");
    try {
      SaveLoadAction.Save(controller);
    } catch (IOException e1) {
      e1.printStackTrace();
    }
  }

}
